#ifndef __CONFIG__H__
#define __CONFIG__H__


#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>

#define DATA_PART 4096

#define LOCAL_HOST "127.0.0.1"
#define MACHINE_PORT 8082

#define LISTEN_PORT 8082
//#define LISTEN_ADDR INADDR_ANY; //绑定所有ip地址
#define LISTEN_ADDR "0.0.0.0"


struct package_t
{
    uint32_t package_len;
    uint32_t _start;
    char filename[256];
    char *file_content;
}; // plen/filename/conten_len

// -------------------------------------------------------------------------- 
char *createBufferSize(long _msize){
    char* m = (char *)malloc(_msize);
    memset(m, 0, _msize);
    return m;
}

#endif  //!__CONFIG__H__